import {createStore, combineReducers, applyMiddleware} from 'redux';
import thunk from 'redux-thunk';
import {composeWithDevTools} from 'redux-devtools-extension';
import TotalReducer from './index.reducer';

const reducers = combineReducers(TotalReducer);


const store = createStore(
    reducers,
    composeWithDevTools(
        applyMiddleware(thunk)
    ),
);

export default store;